package com.boot.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.common.to.seckill.SkuInfoTo;
import com.boot.common.utils.PageUtils;
import com.boot.mall.product.entity.SkuInfoEntity;
import com.boot.mall.product.vo.SkuItemVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author huihui
 * @email 2565036109@qq.com
 * @date 2021-05-06 18:43:57
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils pageSkuProductByCondition(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    SkuItemVo findItemBySkuId(Long skuId) throws ExecutionException, InterruptedException;

    BigDecimal getSkuCurrentPrice(Long skuId);

    Map<String,Object> getSkuInfoBySkuIds(List<String> ids);
}

